dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make newFromID() inherit correctly (ImagePage/CategoryPage...) by using Late Static...
[lhc/web/wiklou.git]
/
includes
/
Article.php
diff --git
a/includes/Article.php
b/includes/Article.php
index
105425a
..
5065280
100644
(file)
--- a/
includes/Article.php
+++ b/
includes/Article.php
@@
-60,7
+60,7
@@
class Article {
*/
public static function newFromID( $id ) {
$t = Title::newFromID( $id );
- return $t == null ? null : new
Article
( $t );
+ return $t == null ? null : new
static
( $t );
}
/**